/*
 * Created: 2022-09-12 19:02:27
 * Author : 涛涛涛
 */

import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
export interface IProps extends ICompProps {}
OptionTagItem.defaultProps = {} as Partial<IProps>;
function OptionTagItem(props: IProps) {
    const { className, style, children, onClick } = props;
    const localClassName = useClassName('OptionTagItem', className);
    return (
        <RootView className={localClassName} style={style} onClick={onClick}>
            {children}
        </RootView>
    );
}
export default React.memo(OptionTagItem as FC<IProps>);
const RootView = styled(View)`
    &.OptionTagItem {
        padding: 6px 12px;
        width: fit-content;
        color: #fff;
        background-color: #999;
        border-radius: 10px;
        font-size: 28px;
    }
`;
